package org.song.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.song.model.dto.TypeDto;
import org.song.model.vo.Type;
import org.springframework.lang.NonNull;

import java.util.List;

@Mapper
public interface TypeMapper {

    List<Type> listTypes(@NonNull TypeDto typeDto);

    int deleteType( @NonNull Type blog);

    int insertType( @NonNull Type blog);

    int updateType( @NonNull Type blog);

    Type selectType ( @NonNull @Param( value = "typeId" ) Long typeId );

}
